<?php

namespace app\job;
use  app\api\logic\ArticleLogic;
use think\queue\Job;
class ArticleLogicJob
{
    public function fire(Job $job, $data) {

        ArticleLogic::xiaoxifa($data);
        // 如果任务执行成功则删除任务
     $job->delete();
        print("<info>Job done successfully.</info>\n");
    }

}